package org.example.trainTicketSystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.trainTicketSystem.DTO.GetTicketDTO;
import org.example.trainTicketSystem.entity.Ticket;

public interface TicketService extends IService<Ticket> {

    Page<Ticket> getTicketsBy(GetTicketDTO getTicketDTO, int page, int size);

    int deleteTicket(int trainId);

}
